home *** CD-ROM | disk | FTP | other *** search
- #include "speech.proto.h"
- #include <Speech.h>
-
-
- /* Boolean EqualVoiceSpec(const VoiceSpec * voice1, const VoiceSpec * voice2)
-
- returns true if the voice voice1 points to is the same voice that voice2 points to
- */
-
- Boolean EqualVoiceSpec(const VoiceSpec * voice1, const VoiceSpec * voice2)
- {
- if (voice1 == voice2) {
- return true;
- }
-
- if (nil == voice1 || nil == voice2) {
- return false;
- }
-
- return voice1 -> id == voice2 -> id && voice1 -> creator == voice2 -> creator;
-
- /* Alternate method:
- return !memcmp(voice1, voice2, sizeof(*voice1));
- */
- }
-